package mutsumimod.cards.custom;

import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import mutsumimod.cards.BaseCard;
import mutsumimod.character.Mutsumi;
import mutsumimod.powers.MutsumiRushPower;
import mutsumimod.util.CardStats;

public class MutsumiRush extends BaseCard {
    public static final String ID = makeID(MutsumiRush.class.getSimpleName());
    public static final CardStats info = new CardStats(
            Mutsumi.Meta.CARD_COLOR,
            CardType.POWER,
            CardRarity.UNCOMMON,
            CardTarget.SELF,
            1
    );

    public MutsumiRush() {
        super(ID, info);
        setAttr(0,0,2);
        setAttrUpg(0,0,0);
    }

    @Override
    public void use(AbstractPlayer p, AbstractMonster m) {
        applyPowerSelf(new MutsumiRushPower(p,magicNumber));
    }

    @Override
    public AbstractCard makeCopy() { //Optional
        return new MutsumiRush();
    }

    @Override
    public void upgrade() {
        if(!upgraded){
            upgradeName();
            upgradeBaseCost(baseCost-1);
        }
    }

}
